﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pagebase/Pagelist.Master" AutoEventWireup="true" CodeBehind="S_roleList.aspx.cs" Inherits="webnew.Systems.S_roleList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="searchbox">    
        角色名称：<asp:TextBox ID="txtRoleName" runat="server" CssClass="txt"></asp:TextBox>
        <asp:Button ID="btnSearch" CssClass="btn" runat="server" Text="检 索" 
            onclick="btnSearch_Click" />
    </div>
        <asp:UpdatePanel ID="upanlGrdView" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
    <div id="contentbox" >
    <asp:GridView ID="grdView" runat="server" Width="98%" PageSize="15" 
            AutoGenerateColumns="False" CssClass="dgv" DataKeyNames="id" 
            onselectedindexchanged="btnSearch_Click" onrowcommand="grdView_RowCommand" 
            onrowdatabound="grdView_RowDataBound">
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:CheckBox ID="chkall" onclick="chkall(this);" runat="server" />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="chkitem" onclick="chkclick(this);" runat="server" />
                </ItemTemplate>
                <ItemStyle Width="10px" />
            </asp:TemplateField>
             <asp:BoundField DataField="Remark" HeaderText="序号" >
              <ItemStyle Width="30px" />
            </asp:BoundField>
            <asp:ButtonField CommandName="setRole" Text="设置权限">
           <ItemStyle Width="80px" />
            </asp:ButtonField>
            <asp:BoundField DataField="rolename" HeaderText="角色名称" />
         
           
        </Columns>
    <HeaderStyle CssClass="x-panel-header" />
    <AlternatingRowStyle CssClass="dgvitem1" />
    <RowStyle CssClass="dgvitem" />
    </asp:GridView>
    </div>
    <div id='footbox'>
        <webdiyer:aspnetpager ID="AspNetPager1" runat="server" CssClass="paginator" 
                        CurrentPageButtonClass="cpb" PageSize="15" 
                        FirstPageText="首页" LastPageText="尾页" NextPageText="后页" 
            PrevPageText="前页" ShowBoxThreshold="2" 
            onpagechanged="AspNetPager1_PageChanged">
        </webdiyer:aspnetpager>
    </div>
    </ContentTemplate>
         <Triggers>           
             <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />                        
         </Triggers>

    </asp:UpdatePanel>
    <asp:UpdateProgress ID="uproLoad" runat="server" 
        AssociatedUpdatePanelID="upanlGrdView" >

            <ProgressTemplate >

               <div id="loadPic"></div>                   
                 <div  id="loadFont" >数据正在查询,请耐心等待...</div>
            </ProgressTemplate>

        </asp:UpdateProgress>
</asp:Content>
